package study.day6.t0;

import java.util.InputMismatchException;
import java.util.Scanner;

public class T0 {
    public static void main(String[] args) {
        try{
            Scanner input=new Scanner(System.in);
            System.out.println("输入第一个操作数：");
            int num1 = input.nextInt();
            System.out.println("输入第二个操作数：");
            int num2 = input.nextInt();
            int result=num1/num2;
            System.out.println(result);
        }catch(InputMismatchException ex){
            System.out.println("输入的不是整数");
        }catch(ArithmeticException ex){
            System.out.println("除数不能是零");
        }catch(Exception ex){
            System.out.println("未知异常");
        }finally {
            System.out.println("程序结束");
        }
    }
}
